﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace delegate_app1
{

    class Program
    {
        private delegate string GetAString(); 
        static void Main(string[] args)
        {
            int x = 40;
            GetAString firstStringMethod = new GetAString(x.ToString);
            Console.WriteLine("String is {0}" , firstStringMethod());
        }
    }
}
